# makefile of GigE SDK Sample code
#

## Executable
SOURCES=$(wildcard *.cpp)
OBJECTS=$(SOURCES:.cpp=.o)
EXECUTABLE=game
LIBS=-lsfml-graphics -lsfml-audio -lsfml-network -lsfml-window -lsfml-system -lBox2D

CC      = g++
CFLAGS	= -Wall -std=gnu++0x

all:	$(SOURCES) $(EXECUTABLE)

clean: 
	rm $(EXECUTABLE) $(OBJECTS)

#$(OBJECTS):	$(SOURCES)
#$(CC) $(CFLAGS) $< -c

%.o : %.cpp
	$(CC) $(CFLAGS) $< -c


$(EXECUTABLE): $(OBJECTS)
	$(CC) $(CFLAGS) $^ -o $@ $(LIBS)

